<template>
  <!-- 反馈说明信息 -->
  <div >
    <FilterTable
      ref="table"
      height="300"
      :columns="columns"
      :isSelectColumn="isSelectColumn"
      :fetchapi="fetchParams"
      :params="flterValue"
      :datakey="'records'"
      :onColumnsChange="columns => this.columns = columns"
    >
    </FilterTable>
     <div class="dialogBottmView">
      <el-button @click="closeDialog">关 闭</el-button>
    </div>
  </div>
</template>

<script>
import { dictionary } from '@/utils/dictMixin';
export default {
  mixins: [dictionary],
  data() {
    return {
      isSelectColumn: false,
      flterValue: {}, //参数
      columns: this.creatHeader(),
      fetchParams: null //ipa 接口
    };
  },
  methods: {
    //打开页面初始化
    init(data) {
      console.log(data)
    },
    creatHeader() {
      return [
        {
          title: '序号',
          dataIndex: 'index',
          width: 80,
          sorter: true,
          render: props => {
            return <span>{props.row.index + 1}</span>;
          }
        },
        {
          title: '执行反馈状态',
          dataIndex: 'field2',
          sorter: true,
          render: props => {
            //编码转汉字
            return <span>{this.createDictText(props.row.basedataRelateId, '1611')}</span>;
          }
        },
        { title: '周度', dataIndex: 'field3', sorter: true },
        { title: '反馈日期', dataIndex: 'field31', dateFormat:'yyyy-MM-dd', sorter: true },
        { title: '进度说明',  dataIndex: 'field4', sorter: true},
        { title: '整改项目',  dataIndex: 'field5', sorter: true}
      ];
    },
   //取消操作
    closeDialog() {
      this.$emit('close', { visible: false });
    }
  }
};
</script>